<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'gift_update.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <style type="text/css">
  table{
  	border-collapse: collapse;
  }
  table th,table td{
  	border:1px solid black;
  }
  
  img{
  width: 40%;
  height: auto;
  }
  </style>
  
   <script type="text/javascript">
  	function backToList(){
  	window.location.href = "/crm/gift/query";
  	}
  </script>
  
  <body>
  	<form action="crm/gift/update" method="post">
    <table id="tt" class="easyui-datagrid" style="width:100%;height:auto" >
    <input type="hidden" name="nGiftno" value="${gift.nGiftno}">
      <thead>
      <tr><th align="center" colspan="3">兑换礼品明细</th></tr>
      </thead>
      <tr>
      <td rowspan="6" style="width: 40%" align="center">
      <img name="vFile" src="${gift.vFile}"><br>
      <input type="file">   
      </td>
      <td>礼品名称</td>
      <td><input type="text" name="vGiftname" value="${gift.vGiftname}"></td>
      </tr>
      <tr>
      <td>礼品类别</td>
      <td><input type="text" name="vGifttype" value="${gift.vGifttype}"></td>
      </tr>
      <tr>
      <td>礼品库存</td>
      <td><input type="text" name="nNum" value="${gift.nNum}"></td>
      </tr>
      <tr>
      <td>单个所需积分</td>
      <td><input type="text" name="nSubs" value="${gift.nSubs}"></td>
      </tr>

      <tr>
      <td colspan="3" align="center">
      <input type="submit" value="立即提交">
      <input type="button" value="返回列表" onclick="backToList()">
      </td>
      </tr>
  	</table>
  	</form>
  </body>
</html>
